﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="NhanVienList.aspx.cs" Inherits="WebApplication.Admin.NhanVienList" MasterPageFile="~/Admin/Web.Master" %>
<asp:Content ContentPlaceHolderID="Header" runat="server">
</asp:Content>
<asp:Content ContentPlaceHolderID="maint" runat="server">
    <div style="float:right">
 <asp:LinkButton runat="server" ID="lbtnthemmoi" CssClass="btn btn-info" onclick="lbtnthemmoi_Click" 
               >Thêm mới</asp:LinkButton>
</div><br />
<div style="margin-top:25px">
<asp:GridView ID="GrNhanvien" runat="server" CssClass="table table-striped table-bordered table-hover"
        AutoGenerateColumns="False" onrowcommand="GrNhanvien_RowCommand" 
        onrowdatabound="GrNhanvien_RowDataBound" AllowPaging="True" OnSelectedIndexChanging="GrNhanvien_SelectedIndexChanging">
    <Columns>
       <asp:TemplateField HeaderText="STT">
    <ItemTemplate>
    <%# Container.DataItemIndex+1 %>
    </ItemTemplate>
    </asp:TemplateField>
        <asp:BoundField DataField="MANV" HeaderText="Mã nhân viên" />
        <asp:BoundField DataField="CHUCVU" HeaderText="Chức vụ" />
        <asp:BoundField DataField="TENNV" HeaderText="Tên nhân viên" />
        <asp:BoundField DataField="DIACHI" HeaderText="Địa chỉ" />
        <asp:BoundField DataField="NGAYSINH" HeaderText="Ngày sinh" />
        <asp:BoundField DataField="SCMND" HeaderText="Số CMT" />
        <asp:BoundField DataField="SDT" HeaderText="Số điện thoại" />
        <asp:TemplateField HeaderText="Chức năng">
            <ItemTemplate>
 <asp:LinkButton runat="server" ID="lbtnsua" CommandName="lbtnsua" CommandArgument='<%#Bind("MANV") %>'><i class="icon-pencil bigger-130"></i></asp:LinkButton>
 <asp:LinkButton runat="server" ID="lbtnxoa" CommandName="lbtnxoa" CommandArgument='<%#Bind("MANV") %>' OnClientClick="return confirm('Bạn có muốn xóa không ?');"><i class="icon-trash bigger-130 red"></i></asp:LinkButton>

            </ItemTemplate>
        </asp:TemplateField>
    </Columns>
</asp:GridView>
</div>
</asp:Content>

